home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 264_01 / touch.doc < prev    next >
Text File  |  1980-01-01  |  896b  |  23 lines

  1. TOUCH
  2.  
  3. Purpose
  4. set time of files to current time
  5.  
  6. Syntax
  7. touch [-c] file...
  8.  
  9. Comments
  10. Touch changes its arguments' date fields in the directory, without
  11. otherwise affecting the files.  If a specified file does not exist and
  12. the -c option has not been specified, touch will attempt to create it
  13. with zero length.  Touch is useful mainly in conjunction with the make
  14. program.  It fools make into thinking that targets which haven't been
  15. changed have been.  For example, if foo.com depends on foo.c, and a
  16. change is made to a comment in foo.c, make will recompile foo.c even
  17. though it doesn't have to.  The command "touch foo.com" will make
  18. foo.com's date later than foo.c's, and thus no needless recompilation
  19. will take place. 
  20.  
  21. Options
  22. -c      don't try to create file if it doesn't already exist.
  23.